package com.jnshu.dao;

import com.jnshu.pojo.Model;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ModelMapper {
    //根据id删除
    int deleteByPrimaryKey(Long id);
    //新增模块
    int insertSelective(Model record);
    //根据id查询
    Model selectByPrimaryKey(Long id);
    //根据id更新
    int updateByPrimaryKeySelective(Model record);
    //分页列表查询
    List<Model> selectModelList();
    //根据模块名称查询
    Model selectByModelName(String modelName);

}